<!--{template common/header_simple_start}-->
<link rel="stylesheet" type="text/css" href="static/lyear/js/bootstrap-lyear-select/bootstrap-lyear-select.css?{VERHASH}">
<style>

	.form-horizontal-left .checkbox-inline {
		margin: 0;
		min-width: 130px;
	}
	textarea.form-control,select.form-control{
		border-width:1px 1px 1px 1px;
	}
</style>
<!--{template common/header_simple_end}-->
<!--{template common/commer_header}-->
<div class="bs-container clearfix" style="padding-top:0">
	<div class="bs-left-container  clearfix">
		<!--{template left}-->
	</div>
	<div class="left-drager">
		<div class="left-drager-op">
			<div class="left-drager-sub"></div>
		</div>
	</div>
	<div class="bs-main-container  clearfix">
		<div class="main-header clearfix">
			<ul class="nav nav-pills">
				<li class="nav-item">
					<a class="nav-link" href="{MOD_URL}&op=verifyset">{lang members_verify}</a>
				</li>
				<li class="nav-item">
					<a class="nav-link active" href="{MOD_URL}&op=verifyset&do=edit&vid=$vid">{lang edit}</a>
				</li>
			</ul>
		</div>
		<div class="main-content">
        <div class="col-md-12">
          <form id="cpform" action="{MOD_URL}&op=verifyset&do=edit" class="form-horizontal form-horizontal-left" method="post" name="cpform" enctype="multipart/form-data">
            <input type="hidden" value="{FORMHASH}" name="formhash">
            <input type="hidden" value="true" name="verifysubmit">
            <input type="hidden" value="$vid" name="vid">
            <div class="row mb-3">
              <label class="col-sm-2">{lang members_verify_title}</label>
              <div class="col-sm-10">
                <input name="verify[title]" value="$verifyarr[title]" type="text" class="form-control" <!--{if $verifyarr[readonly]}-->disabled="disabled"<!--{/if}-->>
              </div>
            </div>
            <div class="row mb-3">
              <label class="col-sm-2">{lang members_verify_synopsis}</label>
              <div class="col-sm-10">
                <textarea name="verify[desc]" type="textarea" class="form-control" rows="3">$verifyarr[desc]</textarea>
                <span class="help-block">{lang verifyset_verify_synopsis_text}</span>
              </div>
            </div>
            <div class="row mb-3">
              <label class="col-sm-2">{lang members_verify_enable}</label>
              <div class="col-sm-10">
                <div class="form-check form-check-inline">
                  <input class="form-check-input" type="radio" id="verify[available]1" name="verify[available]" value="1" <!--{if $verifyarr[available]}-->checked="checked"<!--{/if}-->>{lang enable}</label>
                </div>
                <div class="form-check form-check-inline">
                  <input class="form-check-input" type="radio" id="verify[available]2" name="verify[available]" value="0" <!--{if !$verifyarr[available]}-->checked="checked"<!--{/if}-->>{lang no_enable}</label>
                </div>
              </div>
            </div>
            <div class="row mb-3">
              <label class="col-sm-2">{lang members_verify_icon}</label>
              <div class="col-sm-10">
                <div class="form-check form-check-inline">
                  <input class="form-check-input" type="radio" id="verify[showicon]1" name="verify[showicon]" value="1" <!--{if $verifyarr[showicon]}-->checked="checked"<!--{/if}--> onclick="document.('hidden_verify_showicon').style.display = '';">{lang show}</label>
                </div>
                <div class="form-check form-check-inline">
                  <input class="form-check-input" type="radio" id="verify[showicon]2" name="verify[showicon]" value="0" <!--{if !$verifyarr[showicon]}-->checked="checked"<!--{/if}--> onclick="document.getElementById('hidden_verify_showicon').style.display = 'none';">{lang no_show}</label>
                </div>
              </div>
              <dd id="hidden_verify_showicon" class="clearfix mt10" <!--{if !$verifyarr[showicon]}-->style="display:none"<!--{/if}-->>
                <div class="row mb-3">
                  <label class="col-sm-2">{lang members_unverify_icon}</label>
                  <div class="col-sm-10">
                    <table>
                      <tr>
                        <td valign="top">
                          <div>
                            <input id="fileQ3_0" style="display:" name="unverifyiconnew" value="" type="file" class="form-control uploadbtn marginbot" accept="image/jpeg,image/gif,image/png,image/jpg">
                            <input id="fileQ3_1" style="display:none" name="TMPunverifyiconnew" value="$verifyarr[unverifyicon]" type="text" class="form-control marginbot" accept="image/jpeg,image/gif,image/png,image/jpg">
                          </div>
                          <div>
                            <a id="fileQ3_0a" class="btn btn-primary" style="font-weight:bold;" href="javascript:;" onclick="document.getElementById('fileQ3_1a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileQ3_1').name = 'TMPunverifyiconnew';document.getElementById('fileQ3_0').name = 'unverifyiconnew';document.getElementById('fileQ3_0').style.display = '';document.getElementById('fileQ3_1').style.display = 'none'">{lang web_upload}</a>&nbsp;
                            <a id="fileQ3_1a" class="btn btn-primary" style="" href="javascript:;" onclick="document.getElementById('fileQ3_0a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileQ3_0').name = 'TMPunverifyiconnew';document.getElementById('fileQ3_1').name = 'unverifyiconnew';document.getElementById('fileQ3_1').style.display = '';document.getElementById('fileQ3_0').style.display = 'none'">{lang input}URL</a>
                          </div>
                        </td>
                        <td>
                          <div class="ml20">$unverifyiconhtml</div>
                        </td>
                      </tr>
                    </table>
                  </div>
                </div>
                <div class="row mb-3">
                  <label class="col-sm-2">{lang members_verify_icon}</label>
                  <div class="col-sm-10">
                    <table>
                      <tr>
                        <td valign="top">
                          <div>
                            <input id="fileO4_0" style="display:" name="iconnew" value="" type="file" class="form-control uploadbtn marginbot" accept="image/jpeg,image/gif,image/png,image/jpg">
                            <input id="fileO4_1" style="display:none" name="TMPiconnew" value="$verifyarr[icon]" type="text" class="form-control marginbot" accept="image/jpeg,image/gif,image/png,image/jpg">
                          </div>
                          <div>
                            <a id="fileO4_0a" class="btn btn-primary" style="font-weight:bold" href="javascript:;" onclick="document.getElementById('fileO4_1a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileO4_1').name = 'TMPiconnew';document.getElementById('fileO4_0').name = 'iconnew';document.getElementById('fileO4_0').style.display = '';document.getElementById('fileO4_1').style.display = 'none'">{lang web_upload}</a>&nbsp;
                            <a class="btn btn-primary" id="fileO4_1a" style="" href="javascript:;" onclick="document.getElementById('fileO4_0a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileO4_0').name = 'TMPiconnew';document.getElementById('fileO4_1').name = 'iconnew';document.getElementById('fileO4_1').style.display = '';document.getElementById('fileO4_0').style.display = 'none'">{lang input}URL</a>
                          </div>
                        </td>
                        <td>
                          <div class="ml20">$verificonhtml</div>
                        </td>
                      </tr>
                    </table>

                  </div>
                </div>
              </div>
            </div>
            <div class="row mb-3">
              <label class="col-sm-2">{lang choosable_data}</label>
              <div class="col-sm-10">
                <!--{loop $fieldarr $value}-->
								<div class="form-check form-check-inline">
                  <input class="form-check-input" type="checkbox" id="verify[field][{$value[fieldid]}]" name="verify[field][{$value[fieldid]}]" value="$value[fieldid]"<!--{if $verifyarr[field][$value[fieldid]]}--> checked="checked"<!--{/if}-->>
                  <label class="form-check-label" for="verify[field][{$value[fieldid]}]">$value[title]</label>
                </div>
                <!--{/loop}-->
              </div>
              <div class="col-sm-10">
                <span class="help-block danger">{lang verifyset_choosable_data_text}</span>
              </div>
            </div>
            <div class="row mb-3">
              <label class="col-sm-2">{lang members_verify_group}</label>
              <div class="col-sm-10">
								<select class="form-select" name="verify[groupid][]" multiple>
                  <!--{loop $usergroups $value}-->
                  <option value="$value[groupid]" <!--{if in_array($value[groupid],$verifyarr[groupid])}-->selected="selected"<!--{/if}-->>$value[grouptitle]</option>
                  <!--{/loop}-->
                </select>
                <span class="help-block">{lang verifyset_verify_group_text}</span>
              </div>
            </div>
            <dl>
              <input type="submit" class="btn btn-primary" name="verifysubmit" value="{lang save_set}">
            </dl>
          </form>
      </div>
	</div>
</div>
<script type="text/javascript">
	var url = '{MOD_URL}';

	jQuery(document).ready(function(e) {
		jQuery('select').lyearSelect();
		<!--{if $verifyarr['icon']}-->
		jQuery('#fileO4_1a').trigger('click');
		<!--{/if}-->
		<!--{if $verifyarr['unverifyicon']}-->
		jQuery('#fileQ3_1a').trigger('click');
		<!--{/if}-->

	});
</script>
<script type="text/javascript" src="static/lyear/js/bootstrap-lyear-select/bootstrap-lyear-select.js?{VERHASH}"></script>
<!--{template common/footer_simple}-->